import request from '@/utils/request'

export function fetchEmployeee(data) {
  return request({
    url: '/staff/get-All',
    method: 'get'
  })
}
export function createEmployeee(data) {
  return request({
    url: '/staff/save-one',
    method: 'post',
    data
  })
}
export function updateEmployeee(data) {
  return request({
    url: '/staff/update',
    method: 'put',
    data
  })
}

export function fetachEmployeeeInfo(data) {
  return request({
    url: '/repair-order/get-completedOrderInfo/byStaffId',
    method: 'get',
    params: data
  })
}

export function deleteEmployeee(data) {
  return request({
    url: '/employee/delete/byEmployeeId',
    method: 'delete',
    params: data
  })
}
